<template>
	<view class="zone">
		<Header title="升仙大会"></Header>
		<image class="guize2" @click="$p.navto('/pages/index/record')"
			src="http://image.qxgm.site/tdz/img/assembly/mg-06.png" mode="widthFix"></image>
		<image class="guize1" @click="$p.navto('/pages/index/record')"
			src="http://image.qxgm.site/tdz/img/assembly/mg-07.png" mode="widthFix"></image>

		<view class="main">
			<view class="book">
				<image src="http://image.qxgm.site/tdz/img/assembly/mg-05.png" mode="widthFix"></image>
				<view class="p1">
					<view>{{data.name}}</view>
					<view class="time">{{data.execute_time}}</view>
				</view>
				<view class="p2">
					<text class="t">争夺天下第一</text>
				</view>
				<view class="p3">
					<text class="text1">瓜分</text>
					<text class="text2">{{Math.floor(data.number)}}</text>
					<text class="text3">奖池奖励</text>
				</view>
			</view>

			<view class="sbox">
				<image class="dangqian" src="http://image.qxgm.site/tdz/img/assembly/mg-04.png" mode="widthFix"
					@click="$p.navto('/pages/index/theCharts')"></image>
				<image class="yun" src="http://image.qxgm.site/tdz/img/public/m_yun.png" mode="widthFix"></image>
				<image class="ping1" src="http://image.qxgm.site/tdz/img/public/ping1.png" mode="widthFix"></image>
				<view class="box">
					<view class="m_title">
						<image src="http://image.qxgm.site/tdz/img/public/l1.png" mode="widthFix" />
						<text>玩法说明</text>
						<image src="http://image.qxgm.site/tdz/img/public/r1.png" mode="widthFix" />
					</view>
					<view class="item">
						<view>1.每周举办一次升仙大会，每周日可领取排行奖励。</view>
						<view>2.每周六24点结算，根据战力进行排行发放奖励。</view>
					</view>
					<view class="m_title">
						<image src="http://image.qxgm.site/tdz/img/public/l1.png" mode="widthFix" />
						<text>奖池</text>
						<image src="http://image.qxgm.site/tdz/img/public/r1.png" mode="widthFix" />
					</view>
					<view class="item">
						<view>平台收益70%+上期遗留30%自动投入奖池</view>
					</view>
					<view class="m_title">
						<image src="http://image.qxgm.site/tdz/img/public/l1.png" mode="widthFix" />
						<text>奖励发放 <br><text class="titlebox">(30%留至下一期)</text></text>
						<image src="http://image.qxgm.site/tdz/img/public/r1.png" mode="widthFix" />
					</view>
					<view class="list">
						<view class="box1" style="margin-top: 20px;">
							<view class="num">第<text>1</text>名奖励</view>
							<view class="dian">.............................</view>
							<view class="num">瓜分<text>20%</text>奖池</view>
						</view>
						<view class="box1" style="margin-top: 20px;">
							<view class="num">第<text>2</text>名奖励</view>
							<view class="dian">.............................</view>
							<view class="num">瓜分<text>10%</text>奖池</view>
						</view>
						<view class="box1" style="margin-top: 20px;">
							<view class="num">第<text>3</text>名奖励</view>
							<view class="dian">.............................</view>
							<view class="num">瓜分<text>5%</text>奖池</view>
						</view>
						<view class="box1" style="margin-top: 20px;">
							<view class="num">第<text>4-10</text>名奖励</view>
							<view class="dian">........................</view>
							<view class="num">瓜分<text>15%</text>奖池</view>
						</view>
						<view class="box1" style="margin-top: 20px;">
							<view class="num">第<text>11-30</text>名奖励</view>
							<view class="dian">......................</view>
							<view class="num">瓜分<text>10%</text>奖池</view>
						</view>
						<view class="box1" style="margin-top: 20px;">
							<view class="num">第<text>31-100</text>名奖励</view>
							<view class="dian">....................</view>
							<view class="num">瓜分<text>10%</text>奖池</view>
						</view>
					</view>

				</view>
			</view>
		</view>



	</view>
</template>

<script>
	export default {
		data() {
			return {
				data: {}
			}
		},
		onLoad() {
			this.indexfun()
		},
		methods: {
			async indexfun() {
				let res = await this.$http.index.sxindex()
				if (res.code == 1) {
					this.data = res.data
				}
			}
		}
	}
</script>

<style lang="less">
	.zone {
		min-height: 100vh;
		background: url(http://image.qxgm.site/tdz/img/public/p_bg.png) no-repeat;
		background-size: 100% auto;
	}


	// #ifdef H5
	.guize1 {
		position: absolute;
		top: 10px;
		right: 13px;
		width: 60px;
		z-index: 999;
	}

	.guize2 {
		position: absolute;
		top: 10px;
		right: 100px;
		width: 60px;
		z-index: 999;
	}

	// #endif


	// #ifdef APP-PLUS
	.guize1 {
		position: absolute;
		top: 34px;
		right: 13px;
		width: 60px;
		z-index: 999;
	}

	.guize2 {
		position: absolute;
		top: 34px;
		right: 100px;
		width: 60px;
		z-index: 999;
	}

	// #endif



	.main {
		padding-top: 5%;
		box-sizing: border-box;
	}

	.book {
		position: relative;

		image {
			width: 100%;
		}

		.p1 {
			background: url(http://image.qxgm.site/tdz/img/assembly/mg-01.png) no-repeat;
			background-size: 100% 100%;
			position: absolute;
			top: 0px;
			left: 16px;
			padding: 15px 36px 16px 8px;
			box-sizing: border-box;

			.time {
				color: #CC33CC;
				font-size: 12px;
			}
		}

		.p2 {
			background: url(http://image.qxgm.site/tdz/img/assembly/mg-02.png) no-repeat;
			background-size: 100% 100%;
			position: absolute;
			word-wrap: break-word;
			/*英文的时候需要加上这句，自动换行*/
			/*自测了这句话没啥用*/
			writing-mode: vertical-rl;
			/*从左向右 从右向左是 writing-mode: vertical-rl;*/
			writing-mode: tb-rl;
			/*IE浏览器的从左向右 从右向左是 writing-mode: tb-rl；*/
			font-size: 21px;
			padding: 17px 12px 0 6px;
			box-sizing: border-box;
			width: 52px;
			height: 233px;
			top: -17px;
			right: 0;

			.t {
				background: linear-gradient(0deg, #330099 0.1220703125%, #9933CC 57.763671875%, #6600CC 99.12109375%);
				-webkit-background-clip: text;
				-webkit-text-fill-color: transparent
			}
		}

		.p3 {
			background: url(http://image.qxgm.site/tdz/img/assembly/mg-03.png) no-repeat;
			background-size: 100% 100%;
			position: absolute;
			bottom: 15px;
			left: 0px;
			right: 10px;
			text-align: center;
			padding: 15px 0;

			.text1 {
				color: #33FF99;
				font-size: 18px;
			}

			.text2 {
				margin: 0 5px;
				font-size: 25px;
				color: #FFFFFF;
				-webkit-text-stroke: 1px #CB33CB;
				text-stroke: 1px #CB33CB;
			}

			.text3 {
				background: linear-gradient(0deg, #6d6424 0%, #a347a9 37.20703125%, #ff00ba 100%);
				-webkit-background-clip: text;
				-webkit-text-fill-color: transparent;
				font-size: 18px;

			}
		}
	}

	.sbox {
		width: 100%;
		position: relative;

		.yun {
			position: absolute;
			top: -1%;
			left: 0;
			width: 44%;
			z-index: 9;
		}

		.ping1 {
			width: 100%;
			display: flex;
		}

		.box {
			background: url(http://image.qxgm.site/tdz/img/public/ping2.png);
			background-size: 100% auto;
			padding: 0px 5px 10px;
			box-sizing: border-box;
			margin-top: 25px;

			.item {
				background: url(http://image.qxgm.site/tdz/img/assembly/mg-15.png) no-repeat;
				background-size: 100% 100%;
				font-size: 14px;
				text-align: center;
				width: 100%;
				padding: 10px 0;
			}

			.list {
				background: url(http://image.qxgm.site/tdz/img/assembly/mg-17.png) no-repeat;
				background-size: 100% 100%;
				font-size: 14px;
				text-align: center;
				width: 100%;
				padding: 10px 0;
				margin-top: 10px;
			}

			.box1 {
				display: flex;
				align-items: center;
				padding-left: 8%;
				margin-bottom: 5px;

				.num {
					text {
						color: #CC0000;
					}
				}

				.dian {
					margin: -7px 5px 0;
				}
			}
		}
	}

	.titlebox {
		font-size: 12px;
		position: absolute;
		left: 0;
		right: 0;
		margin: auto;
		text-align: center;
		color: #CC3333;
	}

	.dangqian {
		position: absolute;
		z-index: 1;
		width: 40%;
		right: 0;
		top: -5px;
	}
</style>